package com.ucode.application.form.crm;

import java.io.Serializable;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@SuppressWarnings("serial")
@ApiModel(value="商机状态")
public class BusinessStatusItem implements Serializable{

    /**
     * 状态名称
     */
    @ApiModelProperty(value = "商机状态名称",required=true)
    @NotBlank(message = "商机状态名称不能为空")
    @Length(max=100,message = "商机状态名称最大100字符")
    private String name;
    /**
     * 赢单率,单位%
     */
    @ApiModelProperty(value = "赢单率",required=true,example="10")
    @NotNull(message="赢单率不能为空")
    @Range(min=1,max=100,message="赢单率必须在1-100之间")
    private Integer rate;
    
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public Integer getRate() {
        return rate;
    }
    public void setRate(Integer rate) {
        this.rate = rate;
    }
}
